package com.diver.flinkdemo.mapper.dorisMapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diver.flinkdemo.entity.xxt.LastLocation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**

 * @author  guofy

 * @create  2020-03-09 15:20

 * 设备最后上报位置

 **/
@Mapper
//@DS("doris")
public interface LastLocationMapper extends BaseMapper<LastLocation> {
    List<LastLocation> getLatestInTimes(@Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("studentCardIdList") List<String> studentCardIdList);

    List<Map<String, Object>> getLastLocationList(@Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("studentCardIdList") List<String> studentCardIdList);
}
